<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>

    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/assets/H-ui/static/h-ui/css/H-ui.min.css"/>
    <%--引起冲突的样式--%>
    <%--<link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/table.css"/>--%>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/assets/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/assets/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/assets/H-ui/static/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/bootstrap.css"/>
    <!--_footer 作为公共模版分离出去-->
    <script src="${pageContext.request.contextPath}/assets/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/assets/js/bootstrap.min.js"></script>
    <!--/_footer /作为公共模版分离出去-->
    <title>报告列表管理 - </title>
</head>
<body>
<!--/_menu 作为公共模版分离出去-->
                    <h3 align="center">报告详情</h3>
                    <table class="table table-border table-bordered table-hover table-bg table-sort">
                        <thead>
                        <tr class="text-c">
                            <th width="100">体检人员</th>
                            <th width="30">科室</th>
                            <th width="90">体检项目</th>
                            <th width="30">体检费用</th>
                            <th width="30">状态</th>
                            <th width="30">科室地址</th>
                            <th width="30">小结</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:if test="${not empty page}">
                            <c:forEach items="${page.list}" var="reportItem">
                                <tr class="text-c">
                                    <td>${user.userName}</td>
                                    <td>${reportItem.desk.deskName}</td>
                                    <td>${reportItem.item.itemName}</td>
                                    <td>${reportItem.item.itemMoney}</td>
                                    <td>${reportItem.state.stateName}</td>
                                    <td>${reportItem.desk.deskSite}</td>
                                    <td>${reportItem.remark}</td>
                                </tr>
                            </c:forEach>
                        </c:if>
                        </tbody>
                    </table>
                    <div id="page" style="float: right" align="center">
                        总共${page.pages}页，当前第${page.pageNum}页,每页总共${page.pageSize}。
                        <a id="firstPage" class="btn-sm btn-primary" onclick="changeNum(${page.prePage})">上一页</a>
                        <a id="lastPage" class="btn-sm btn-primary" onclick="changeNum(${page.nextPage})">下一页</a>
                    </div>



<script type="text/javascript">

    $(function () {
        if (${page.isLastPage}) {
            $("#lastPage").removeAttr("onclick");
        }
    });

    function changeNum(obj) {
        var num = obj;
        window.location.href = "${pageContext.request.contextPath}/report/reportImformation.action?reportId=${reportId}&num=" + num;
    }


</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>